package com.bj58.mis.bigdata.mdp.sys.common.exception;


import com.bj58.mis.bigdata.mdp.sys.common.consts.ResultCodeConsts;

public class BizExceptions {
	
	public static RuntimeException illegalParameter(String message){
		return new BizException(ResultCodeConsts.ILLEGAL_PARAMETER, message);
	}
	public static RuntimeException illegalOperation(String message){
		return new BizException(ResultCodeConsts.ILLEGAL_OPERATION, message);
	}
	public static RuntimeException validateError(String message){
		return new BizException(ResultCodeConsts.VALIDATE_ERROR, message);
	}
}
